package com.softtown.modules.workflow.dao;

import com.softtown.common.dao.BaseDao;
import com.softtown.modules.workflow.entity.SwfHstAprvEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author: Dingyayong
 * @Date: 2019/8/22 15:14
 * @Description:
 */
@Mapper
public interface SwfHstAprvDao extends BaseDao<SwfHstAprvEntity> {

    /**
     * 获取待我审批中的审批历史
     * @param compId
     * @param applId
     * @param procInstId
     * @return java.util.List<com.softtown.modules.entity.SwfHstAprvEntity>
     * @Author fuming
     * @Date 2020/5/27 17:21
     */
    List<SwfHstAprvEntity> getswfHstAprvList(@Param("compId") Long compId,@Param("applId")  Long applId,@Param("procInstId")  Long procInstId);

    /**
     * 获取最后一次提交的审批时间
     * @param compId
     * @param applId
     * @param procInstId
     * @return com.softtown.modules.entity.SwfHstAprvEntity
     * @Author fuming
     * @Date 2020/5/27 17:21
     */
    SwfHstAprvEntity getswfHstAprvByProc(@Param("compId") Long compId,@Param("applId")  Long applId,@Param("procInstId")  Long procInstId);

    /**
     * 获取PDF待我审批中的审批历史
     * @param compId
     * @param applId
     * @param procInstId
     * @param dealDate
     * @return java.util.List<com.softtown.modules.entity.SwfHstAprvEntity>
     * @Author fuming
     * @Date 2020/5/27 17:22
     */
    List<SwfHstAprvEntity> getswfHstAprvPdfList(@Param("compId") Long compId,@Param("applId")  Long applId,@Param("procInstId")  Long procInstId,@Param("dealDate") Date dealDate);
}
